home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / tails-greeter / setup.py < prev    next >
Encoding:
Python Source  |  2013-01-10  |  2.9 KB  |  76 lines

  1. #!/usr/bin/env python
  2. #
  3. # Copyright 2012 Tails developers <tails@boum.org>
  4. # Copyright 2011 Max <govnototalitarizm@gmail.com>
  5. # Copyright (C) 2009 Martin Owens
  6. #
  7. # This program is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 3 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program; if not, write to the Free Software
  19. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  20. #
  21.  
  22. from distutils.core import setup
  23. from DistUtilsExtra.command import *
  24. from fnmatch import fnmatch
  25.  
  26. __appname__ = 'tails-greeter'
  27. __version__ = '0.7.4'
  28. import os, platform
  29.  
  30. # remove MANIFEST. distutils doesn't properly update it
  31. # when the contents of directories change.
  32. if os.path.exists('MANIFEST'): os.remove('MANIFEST')
  33.  
  34. if platform.system() == 'FreeBSD':
  35.         man_dir = 'man'
  36. else:
  37.         man_dir = 'share/man'
  38.  
  39. def listfiles(*dirs):
  40.         dir, pattern = os.path.split(os.path.join(*dirs))
  41.         return [os.path.join(dir, filename)
  42.                 for filename in os.listdir(os.path.abspath(dir))
  43.                         if filename[0] != '.' and fnmatch(filename, pattern)]
  44.  
  45. # Generate a standard share dir
  46. SDIR = 'share/%s/' % __appname__
  47.  
  48. setup(
  49.         name             = __appname__,
  50.         version          = __version__,
  51.         description      = 'Shows a community lab loging screen',
  52.         long_description = "Replaces the traditional gdm with a new community cener specialised version.",
  53.         author           = 'Max S',
  54.         author_email     = 'govnototalitarizm@gmail.com',
  55.         url              = 'https://tails.boum.org/todo/TailsGreeter/',
  56.         platforms        = 'linux',
  57.         license          = 'GPLv3',
  58.         packages         = [ 'GdmGreeter' ],
  59.         scripts          = [ 'tails-greeter' ],
  60.         data_files       = [
  61.             ( SDIR, listfiles( '', '*.py' ) ),
  62.             ( SDIR + 'glade', listfiles( 'glade', '*.glade' ) ),
  63.             ( SDIR + 'pixmaps', listfiles( 'pixmaps', '*.svg' ) ),
  64.             ( SDIR + 'pixmaps/lang', listfiles( 'pixmaps/lang', '*.*' ) ),
  65.             ( SDIR + 'pixmaps/theme', listfiles( 'pixmaps/theme', '*.*' ) ),
  66.             ( SDIR + 'pixmaps/auto', listfiles( 'pixmaps/auto', '*.*' ) ),
  67.             ( 'share/gdm/autostart/LoginWindow/', [ 'tails-greeter.desktop' ] ),
  68.             ( SDIR, [ 'tails-logging.conf', 'no-password-lecture.txt' ] ),
  69.         ],
  70.         cmdclass={
  71.                    'build'       : build_extra.build_extra,
  72.                    'build_i18n'  : build_i18n.build_i18n,
  73.                  },
  74.     )
  75.  
  76.